package com.yanqu.road.entity.activity.peakstronghold.config;

public enum ePeakStrongholdStageType {
    BeginInShow("开始展示期", 0),
    EndInShow("比赛结束,领奖期", 1),
    Registration("报名", 2),
    Prepare("准备", 3),
    InBattle("比赛中", 4),
    HoldCreate("据点生成中", 5),
    HoldDefendCreate("据点防守数据生成", 6),
    WaitUpdateEnd("等报名阶段数据传完", 7),
    ;

    private String name;

    private int intValue;

    ePeakStrongholdStageType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public static ePeakStrongholdStageType forValue(int value) {
        for (ePeakStrongholdStageType type : ePeakStrongholdStageType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

}
